
#pragma once
 
#include <stdexcept>
#include <string>

#define dMYEXCEPTION(exception_name)                    \
    struct exception_name: public ::std::runtime_error  \
    {                                                   \
        typedef ::std::runtime_error                    \
            Base;                                       \
        explicit exception_name(const std::string& msg) \
            : Base(msg){}                               \
        explicit exception_name(const char* msg)        \
            : Base(msg){}                               \
    }


